package com.mazaiting.common.core.ex.exceptions;

import com.mazaiting.common.core.domain.result.ResultCode;

/***
 * 基础业务自定义异常
 * @author mazaiting
 */
public class BusinessException extends BaseException {

    public BusinessException(Integer code, String message) {
        super(code, message);
    }

    public BusinessException(Integer code, String message, Throwable cause) {
        super(code, message, cause);
    }

    public BusinessException(Integer code, String message, Throwable cause,
                            boolean enableSuppression,
                            boolean writableStackTrace) {
        super(code, message, cause, enableSuppression, writableStackTrace);
    }

    public BusinessException(ResultCode resultCode) {
        super(resultCode);
    }

}
